<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="/css/x-admin.css"/>
    <link rel="stylesheet" href="/static/layui/css/layui.css"/>
    <link rel="stylesheet" href="/static/layer/skin/layer.css"/>
    <link rel="stylesheet" href="/css/font.css"/>
    <link rel="stylesheet" href="/css/common.css"/>
    <link rel="stylesheet" href="/css/curse.css"/>
    <link rel="stylesheet" href="/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/Sales_Report_personal.css"/>
    <link rel="stylesheet" href="/css/datetime.css"/>
    <link rel="stylesheet" href="/css/list.css"/>
    <link rel="stylesheet" href="/css/dateRange.css"/>
    <link rel="stylesheet" href="/css/gl.css"/>

    <script type="text/javascript" src="/js/jquery.min.js" ></script>
    <script type="text/javascript" src="/static/layui/layui.js"></script>
    <script type="text/javascript" src="/static/layer/layer.js"></script>
    <script type="text/javascript" src="/js/x-layui.js"></script>
    <script type="text/javascript" src="/js/xcity.js"></script>

    <script type="text/javascript" src="/js/bkwcrm.js"></script>
    <script type="text/javascript" src="/js/page.js?version=20171211"></script>
    <script type="text/javascript" src="/js/common.js"></script>
    <script type="text/javascript" src="/js/base.js"></script>
    <script type="text/javascript" src="/js/cookie.js"></script>
    <script type="text/javascript" src="/js/usermanage/user-list.js?version=20171216"></script>

    <style>
        .layui-btn {
            line-height: 38px;
            padding: 0 10px;
        }

        xblock button {
            float: left;
        }

        tbody img {
            margin-bottom: 15px;
            float: left;
            max-width: 55%;
            max-height: 55%
        }

        .td_relative {
            position: relative;
        }

        .face_add {
            position: absolute;
            right: -160px;
            top: 8px;
        }

        .titBottom_s table td {
            overflow: auto !important;
            white-space: unset !important;
            text-overflow: ellipsis !important;
        }

        .basic_infor {
            width: 100%;
            height: 114px;
            background: #f6f6f6;
            border-top: 1px solid #f6f6f6;
            margin-bottom: 30px;
        }

        .basic_infor p {
            margin-top: 30px;
        }

        .basic_infor .sp1 {
            color: #666;
            font-size: 30px;
            font-weight: bold;
            margin-left: 25px;
        }

        .basic_infor .sp2 {
            color: #666;
            font-size: 14px;
            margin-left: 10px;
        }

        .basic_infor .sp2 i {
            color: #ff8800;
            margin: 0 3px;
            font-size: 14px;
        }

        .basic_p5 textarea {
            width: 700px;
            height: 80px;
            border: 1px solid #eee;
            color: #999;
            font-size: 14px;
            line-height: 22px;
            border-radius: 5px;
        }

        .layui-form-label {
            width: 85px;
        }
        .lincensefile input {
            float: left;
            font-family: 微软雅黑;
            cursor: pointer;
            color: rgb(75, 75, 75);
            padding-left: 2.5%;
            padding-right: 0%;
            height: 34px;
            margin: 5px 0px;
            border-width: 1px;
            border-style: solid;
            border-color: rgb(220, 220, 220);
            border-image: initial;
        }
        .lincensefile img{
            max-width: 250px;
            max-height: 250px;
            /*margin-left: 109px;*/
        }
        .x-green{
            color: #5FB878;
        }

    </style>

</head>

<body>

<div class="x-body">
    <!-- 时间选择 -->
    <div style="margin-bottom:10px;border-bottom: 0px;padding-bottom: 0px;" class="nav_wrap_personal">
        <ul class="personal_nav_timetab select_time1">
            <li name="0" class="blue_color">今日</li>
            <li name="1">昨日</li>
            <li name="7">最近7日</li>
            <li name="30">最近30日</li>
            <li name="">全部</li>
        </ul>
        <div class="input_long_wrap">
            <div class="ta_date" id="div_date1" style="margin-right: -20px">
                <span class="date_title" id="date1">2017-10-25 - 2017-10-26</span>
            </div>
            <label class="contrast" for="needCompare_1508986225539" style="display: none;"><input type="checkbox"
                                                                                                  class="pc"
                                                                                                  name="needCompare_1508986225539"
                                                                                                  id="needCompare_1508986225539"
                                                                                                  value="1"
                                                                                                  disabled="disabled">对比</label>
            <div class="ta_date" id="div_compare_date1" style="display: none;"><span name="dateCompare"
                                                                                     id="date1Compare"
                                                                                     class="date_title"
                                                                                     style="display: none;"></span> <a
                    class="opt_sel" id="compare_trigger" href="javascript:void(0)"> <i class="i_orderd"></i> </a></div>
            <label class="contrast" for="needCompare_1508756891010" style="display: none;">
                <input type="checkbox" class="pc" name="needCompare_1508756891010" id="needCompare_1508756891010"
                       value="1" disabled="disabled">对比</label>
            <div class="ta_date" id="div_compare_date1" style="display: none;"><span name="dateCompare"
                                                                                     id="date1Compare"
                                                                                     class="date_title"
                                                                                     style="display: none;"></span>
                <a class="opt_sel" id="compare_trigger" href="javascript:void(0)"> <i class="i_orderd"></i> </a></div>
        </div>

        <!-- 搜索框 -->
        <div id="conditional_search" style="float: right; border: 0; font-size: 14px; line-height: 36px;"
             course_tiku_stlb_search="">
            <div class="titlist_wrap" style="margin-top: 0px;">
                <div class="curse_list">
                    <div class="titlist_wrap_tit  sousuo_border">
                        <span id="search_name" value="user_name">用户名查询</span><i class="titlisticon icon-angle-down"></i>
                    </div>
                    <ul class="curse_list_ul zq_ul ove"
                        style="max-height: 399px; width: 88px !important; display: none;" id="conditional_search">
                        <li value="user_tel"><a name="user_tel"><span class="show_tips">电话查询</span></a></li>
                        <li value="user_name" class="shou"><a name="user_name"><span class="show_tips">用户名查询</span></a>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="newBtn_Right">
                <input class="newBtn_Right_input newBtn_Right_inputs" id="conditional_searchinput" name="" value=""
                       placeholder="请输入用户名">
                <a class="newBtn_Right_a" onclick="addgoods()"><i class="icon-search"></i> </a>
                <div style="clear: both;"></div>
            </div>
        </div>
        <div style="clear:both;"></div>
    </div>

    <xblock>
        <!--<button class="layui-btn layui-btn-danger" onclick="delAll()">-->
            <!--<i class="layui-icon">&#xe640;</i>批量删除-->
        <!--</button>-->
        <button class="layui-btn" onclick="question_add()">
            <i class="layui-icon">&#xe608;</i>添加
        </button>

    </xblock>

    <table class="layui-table">
        <thead>
        <tr>
            <!--<th style="width:1%;">-->
                <!--<input type="checkbox" name="" value="" id="checkAll">-->
            <!--</th>-->
            <th style="width: 8%;">用户名</th>
            <th style="width: 8%;">姓名</th>
            <th style="width: 8%;">联系方式</th>
            <!--<th style="width: 8%;">邮箱</th>-->
            <th style="width: 8%;">
                <div class="curse_list table_ulwrap">
                    <div class="titlist_wrap_tit_table my_clienttable">
                        <span class="user_role_name" id="user_role_name" value="">角色</span>
                        <i class="icon-angle-down tittalecon"></i>
                    </div>
                    <ul class="table_ul my_select_ul" id="user_role_ul">
                        <li value=""><a href="javascript:void(0);">全部</a></li>
                        <li value="0"><a href="javascript:void(0);">普通用户</a></li>
                        <li value="1"><a href="javascript:void(0);">商家</a></li>
                        <li value="2"><a href="javascript:void(0);">超级管理员</a></li>
                    </ul>
                </div>
            </th>
            <th style="width: 10%;" class="list_sort_tab" value="user_createtime">注册时间
                <i class="icon_downs createcolor1 sortfildshiti" tp="QuestionNum_Y" name="desc"></i>
            </th>
            <th style="width: 14%;">操作</th>
        </tr>
        </thead>
        <tbody id="biuuu_city_list">

        </tbody>
    </table>

    <!--页码 start-->
    <div class="bottom_page">
        <div class="my_client_b_l">
        </div>
        <div id="biuuu_city" style="margin: 2px auto;text-align: center;">
            <div style="float: right;padding:7px 20px;" id="bottom">
                <div class="select_wrap select_w" onselectstart="return false">
                    <div style="float: left;">
                                <span class="bottom_left_tit">
                                    共 <span id="totalSize">0</span> 行
                                          每页显示行:
                                      </span>
                        <span style="float: left;" class="select_span1">
                                    <span id="selectPageSize">
                                        <span id="selectPageSize1">10</span>
                                        <i class="icon-angle-up"></i>
                                    </span>
                                    <ul class="select_ul2" id="select_page_ul" onclick="this.style.display='none'">
                                        <li>10</li>
                                        <li>20</li>
                                        <li>30</li>
                                        <li>50</li>
                                        <li>100</li>
                                    </ul>
                                </span>

                    </div>
                    <div style="float: left;margin-left: 5px" id="site">
                        <button id="first_button" onclick="changeCurrentPage('first')">
                            <i class="icon-double-angle-left"></i>
                        </button>
                        <button id="last_button" onclick="changeCurrentPage('last');">
                            <i class="icon-angle-left"></i></button>
                        <div class="page_numdiv">
                            <span id="currentPage">1</span>/<span id="totalPage">1</span>
                        </div>
                        <button id="next_button" onclick="changeCurrentPage('next');">
                            <i class="icon-angle-right"></i></button>
                        <button id="end_button" onclick="changeCurrentPage('end')">
                            <i class="icon-double-angle-right"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--页码 end-->

</div>

</body>

<!--新建、编辑用户弹框-->
<div id="newlybuildwin" style="display: none;width: 700px"
     class="popup_wrap nre_alert linepopup layui-layer-wrap">
    <div class="popup_tit"></div>
    <div style=" max-height: 400px;overflow-y: auto;padding: 10px 0px;">
        <div class="titBottom_w titBottom_s">
            <div class="status_">
                <input id="add_user_encryptId" type="hidden" value="">
                <input id="add_farm_encryptId" type="hidden" value="">
                <input id="add_sec_encryptId" type="hidden" value="">
                <input id="add_old_role" type="hidden" value="">
                <table>
                    <tr class="tr_s">

                        <td class="status_s" style="vertical-align: top;padding-top: 10px;">
                            <span class="x-red">*</span>用户名：
                        </td>
                        <td>
                            <input type="text" id="admin_name" style="width: 80%" value="">
                            <div class="layui-form-mid layui-word-aux">
                                <span class="x-red">*</span>将会成为您的登录名
                                <span class="x-red checkusename">用户名已存在！</span>
                            </div>
                        </td>

                    </tr>
                    <tr class="tr_s">
                        <td class="status_s" style="vertical-align: top;padding-top: 10px;">
                            <span>联系方式：</span>
                        </td>
                        <td>
                            <input type="text" id="admin_phone" style="width: 80%" value="">
                            <div class="layui-form-mid layui-word-aux">
                                <span class="x-red">*</span>将会成为您的登录名
                                <span class="x-red checktel">电话号码已被注册！</span>
                            </div>

                        </td>

                    </tr>
                    <tr class="tr_s">
                        <td class="status_s" style="vertical-align: top;padding-top: 10px;">
                            <span>姓名：</span>
                        </td>
                        <td>
                            <input id="realName" style="width: 80%" value="">
                            <div class="layui-form-mid layui-word-aux">
                                请填写你的真实姓名
                            </div>
                        </td>
                    </tr>

                    <tr class="tr_s">
                        <td class="status_s">
                            <span>邮箱：</span>
                        </td>
                        <td>
                            <input id="email" type="email" style="width: 80%" value="">
                        </td>
                    </tr>

                    <tr class="tr_s">
                        <td class="status_s" style="vertical-align: top;padding-top: 18px;">
                            <span>性别：</span>
                        </td>
                        <td>
                            <div class="layui-form">
                                <div class="layui-form-item">
                                    <div style="text-align: left;padding-top: 5px;" id="sex">
                                        <input type="radio" name="sex" value="男" title="男" checked="">
                                        <input type="radio" name="sex" value="女" title="女">
                                    </div>
                                </div>
                            </div>

                        </td>
                    </tr>


                    <tr class="tr_s">
                        <td class="status_s" style="vertical-align: top;padding-top: 10px;">
                            <span>角色：</span>
                        </td>
                        <td>
                            <div class="layui-form" style="width: 90%;">
                                <div class="layui-form-item">
                                    <select name="role" id="user_role">
                                        <option value="0" selected>用户</option>
                                        <option value="1">商家</option>
                                        <option value="2">超级管理员</option>
                                    </select>
                                </div>
                            </div>
                        </td>
                    </tr>

                    <tr>
                        <td class="status_s" style="vertical-align: top;padding-top: 10px;">
                            <span>头像：</span></td>
                        <td>
                            <div class="uploadPicture_div">
                                <input name="file" type="file" id="test1" class="file_input"
                                       style="display: none;">
                                <input class="file_url" id="imgPath" type="text" style="width: 65%">
                                <a class="xinjian_btn" style="margin-top: 9px;margin-left: 10px;"
                                   onclick="$(this).siblings('.file_input').click()" href="javascript:void(0)">
                                    上&nbsp;传
                                </a>
                                <div style="clear: both;"></div>
                                <img id="demo1" class="upload_img_show">
                            </div>
                        </td>
                    </tr>

                    <tr class="tr_s pwd">
                        <td class="status_s" style="vertical-align: top;padding-top: 10px;">
                            <span class="x-red">*</span>密码：
                        </td>
                        <td>
                            <input type="password" id="L_pass" style="width: 80%" value="">
                            <div class="layui-form-mid layui-word-aux">
                                6-16个字符
                            </div>
                        </td>
                    </tr>

                    <tr class="tr_s pwd">
                        <td class="status_s" style="vertical-align: top;padding-top: 10px;">
                            <span class="x-red">*</span>确认密码：
                        </td>
                        <td>
                            <input type="password" id="L_repass" style="width: 80%" value="">
                            <div class="layui-form-mid layui-word-aux">
                                请再次输入密码
                            </div>
                        </td>
                    </tr>

                    <!--<tr class="tr_s">-->
                        <!--<td class="status_s" style="vertical-align: top;padding-top: 10px;">-->
                            <!--<span>兴趣爱好(主题)：</span>-->
                        <!--</td>-->
                        <!--<td>-->
                            <!--<div class="layui-form" style="width:100%;text-align: left;">-->
                                <!--<div class="layui-form-item">-->
                                    <!--<div id="userHobbyZt">-->
                                        <!--&lt;!&ndash;<input type="checkbox" name="userHobbyZt" lay-skin="primary" value="游山" title="游山">&ndash;&gt;-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</td>-->
                    <!--</tr>-->


                    <!--<tr class="tr_s">-->
                        <!--<td class="status_s" style="vertical-align: top;padding-top: 10px;">-->
                            <!--<span>兴趣爱好(游玩)：</span>-->
                        <!--</td>-->
                        <!--<td>-->
                            <!--<div class="layui-form" style="width:100%;text-align: left;">-->
                                <!--<div class="layui-form-item">-->
                                    <!--<div id="userHobbyYw">-->
                                        <!--&lt;!&ndash;<input type="checkbox" name="userHobbyYw" lay-skin="primary" value="骑马" title="骑马">&ndash;&gt;-->
                                    <!--</div>-->
                                <!--</div>-->
                            <!--</div>-->
                        <!--</td>-->
                    <!--</tr>-->

                </table>
            </div>
        </div>
    </div>
    <div class="linepopup_div"></div>
    <div class="d_btn">
        <div class="linepopup_button">
            <a class="Save_s" onclick="addUserSave()" href="javascript:void(0)">确定</a> <a
                href="javascript:mclose()" class="sure_btn1" style="margin-right: 15px;">取消</a>
        </div>
    </div>
</div>

<!--升级为商家弹框-->
<div id="MerchantupgradeWin" style="display: none;width: 1000px;"
     class="popup_wrap nre_alert linepopup layui-layer-wrap">
    <div class="popup_tit"></div>
    <div style=" max-height: 400px;overflow-y: auto;padding: 10px 0px;">
        <div class="titBottom_w titBottom_s">
            <!--升级商家的用户加密id-->
            <input id="upgrade_user_encryptId" type="hidden">

            <div class="status_">
                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                    <ul class="layui-tab-title realtime_tab">
                        <li value="1" class="layui-this">农家乐商家</li>
                        <li value="2">旅游景区商家</li>
                    </ul>

                    <div class="layui-tab-content">
                        <!--农家乐 商家-->
                        <div class="layui-tab-item layui-show">
                            <div class="x-body">

                                <div class="layui-form">

                                    <div class="basic_infor">
                                        <p>
                                            <span class="sp1">（农家乐）基本信息认证</span>
                                            <span class="sp2">(<i class="i1">*</i>此类信息为必填项)</span>
                                        </p>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">企业名称</label>
                                        <div class="layui-input-inline">
                                            <input type="text" autocomplete="off" id="farm_business_name"
                                                   class="layui-input" style="width: 345px;">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">统一社会信用码
                                        </label>
                                        <div class="layui-input-inline">
                                            <input type="text" autocomplete="off" id="farm_business_code"
                                                   class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">营业执照
                                        </label>
                                        <div class="uploadPicture_div lincensefile">
                                            <input name="file" type="file" id="farm_license_file" class="file_input"
                                                   style="display: none;">
                                            <input class="file_url" id="farm_license_url" type="text" style="width: 105px">
                                            <a class="xinjian_btn" style="margin-top: 9px;margin-left: 10px;"
                                               onclick="$(this).siblings('.file_input').click()" href="javascript:void(0)">
                                                上&nbsp;传
                                            </a>
                                            <div style="clear: both;"></div>
                                            <label class="layui-form-label"> </label>
                                            <img id="farm_license_img" class="upload_img_show">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">法定代表人</label>
                                        <div class="layui-input-inline">
                                            <input type="text" autocomplete="off" id="farm_Legalperson"
                                                   class="layui-input upgrade_Legalperson">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">联系方式</label>
                                        <div class="layui-input-inline">
                                            <input type="tel" id="farm_tel" value=""
                                                   maxlength="11" class="layui-input upgrade_tel">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">成立日期</label>
                                        <div class="layui-input-inline">
                                            <input class="layui-input" placeholder="成立日期"
                                                   id="farm_start">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">商户类型</label>
                                        <div class="layui-input-inline">
                                            <input type="text" value="农家乐" data="1" readonly="readonly"
                                                   autocomplete="off" id="farm_Mertype_name" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">农家类型</label>
                                        <div class="layui-input-inline">
                                            <select name="farm_Mertype" id="farm_Mertype">
                                            </select>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">经营面积</label>
                                        <div class="layui-input-inline">
                                            <select name="farm_mianji" id="farm_mianji">
                                                <option value="50">50平米以下</option>
                                                <option value="100">50-100平米</option>
                                                <option value="150">100-150平米</option>
                                                <option selected="selected" value="200">150-200平米</option>
                                                <option value="250">200-250平米</option>
                                                <option value="300">250-300平米</option>
                                                <option value="350">300-350平米</option>
                                                <option value="400">350-400平米</option>
                                                <option value="450">400-450平米</option>
                                                <option value="500">450-500平米</option>
                                                <option value="600">500平米以上</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">用餐接待</label>
                                            <div class="layui-input-inline">
                                                <select name="farm_capacity" id="farm_capacity">
                                                    <option value="10">10人以下</option>
                                                    <option value="20">10-20人</option>
                                                    <option value="30">20-30人</option>
                                                    <option value="40">30-40人</option>
                                                    <option value="50">40-50人</option>
                                                    <option value="60">50-60人</option>
                                                    <option value="70">60-70人</option>
                                                    <option value="80">70-80人</option>
                                                    <option value="90">80-90人</option>
                                                    <option value="100">90-100人</option>
                                                    <option value="110">100人以上</option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="layui-inline">
                                            <label class="layui-form-label">住宿容纳</label>
                                            <div class="layui-input-inline">
                                                <select name="farm_room" id="farm_room">
                                                    <option value="10">10人以下</option>
                                                    <option value="20">10-20人</option>
                                                    <option value="30">20-30人</option>
                                                    <option value="40">30-40人</option>
                                                    <option value="50">40-50人</option>
                                                    <option value="60">50-60人</option>
                                                    <option value="70">60-70人</option>
                                                    <option value="80">70-80人</option>
                                                    <option value="90">80-90人</option>
                                                    <option value="100">90-100人</option>
                                                    <option value="110">100人以上</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">商铺规模</label>
                                            <div class="layui-input-inline">
                                                <select name="farm_merch_scale" id="farm_merch_scale">
                                                    <option value="10">10间以下</option>
                                                    <option value="15">10-15间房</option>
                                                    <option value="20">15-20间房</option>
                                                    <option value="25">20-25间房</option>
                                                    <option value="30">25-30间房</option>
                                                    <option value="35">30-35间房</option>
                                                    <option value="40">35-40间房</option>
                                                    <option value="45">40-45间房</option>
                                                    <option value="50">45-50间房</option>
                                                    <option value="60">50间以上</option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="layui-inline">
                                            <label class="layui-form-label">人均消费</label>
                                            <div class="layui-input-inline">
                                                <input type="text" name="pre_consumption"
                                                       id="farm_pre_consumption" class="layui-input"
                                                       value="">
                                            </div>
                                            <div class="layui-form-mid layui-word-aux">
                                                元起
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-row">
                                        <div class="layui-form layui-col-md12  layui-form-pane">
                                            <div class="layui-form-item city_name" id="farm_city_name">
                                                <label class="layui-form-label" style="border: 0px;">所属城市</label>
                                                <div class="layui-input-inline">
                                                    <select name="province" lay-filter="province" id="farm_province">
                                                        <option value="">请选择省</option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-inline">
                                                    <select name="city" lay-filter="city" id="farm_city">
                                                        <option value="">请选择市</option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-inline">
                                                    <select name="area" lay-filter="area" id="farm_area">
                                                        <option value="">请选择县/区</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">住所</label>
                                        <div class="layui-input-inline">
                                            <input type="text" name="principal_address"
                                                   id="farm_address" value=""
                                                   class="layui-input" style="width: 345px;">
                                        </div>
                                    </div>

                                    <div class="basic_infor basic_infor_mar">
                                        <p>
                                            <span class="sp1">完善认证条件</span>
                                            <span class="sp2">（此类信息为选填项，填写完整可让游客对您家的商铺更加了解，更加提高商铺的收益！）</span>
                                        </p>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">营业状态</label>
                                        <div class="layui-input-inline">
                                            <select name="business_state" id="farm_business_state">
                                                <option value="0">装修中</option>
                                                <option value="1" selected>营业中</option>
                                                <option value="2">停业中</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="layui-form-item basic_p5">
                                        <label class="layui-form-label">农家介绍</label>
                                        <div class="layui-input-inline">
                                            <textarea name="txt_introduce" id="farm_introduce"></textarea>
                                        </div>
                                    </div>

                                    <div class="layui-form-item basic_p5">
                                        <label class="layui-form-label">公交路线</label>
                                        <div class="layui-input-inline">
                                            <textarea name="txt_bus_line" id="farm_bus_line"></textarea>
                                        </div>
                                    </div>

                                    <div class="layui-form-item basic_p5">
                                        <label class="layui-form-label">自驾路线</label>
                                        <div class="layui-input-inline">
                                            <textarea name="txt_bus_line" id="farm_self_driving_line"></textarea>
                                        </div>
                                    </div>

                                    <div class="layui-form-item basic_p5">
                                        <label class="layui-form-label">备注</label>
                                        <div class="layui-input-inline">
                                            <textarea id="farm_remarks"
                                                      placeholder=""></textarea>
                                        </div>
                                    </div>

                                </div>

                            </div>

                        </div>

                        <!--景区 商家-->
                        <div class="layui-tab-item">

                            <div class="x-body">

                                <div class="layui-form">

                                    <div class="basic_infor">
                                        <p>
                                            <span class="sp1">（旅游景区）基本信息认证</span>
                                            <span class="sp2">(<i class="i1">*</i>此类信息为必填项)</span>
                                        </p>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">企业名称</label>
                                        <div class="layui-input-inline">
                                            <input type="text" autocomplete="off" id="tour_business_name"
                                                   class="layui-input" style="width: 345px;">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">统一社会信用码
                                        </label>
                                        <div class="layui-input-inline">
                                            <input type="text" autocomplete="off" id="tour_business_code"
                                                   class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">营业执照
                                        </label>
                                        <div class="uploadPicture_div lincensefile">
                                            <input name="file" type="file" id="tour_license_file" class="file_input"
                                                   style="display: none;">
                                            <input class="file_url" id="tour_license_url" type="text" style="width: 105px">
                                            <a class="xinjian_btn" style="margin-top: 9px;margin-left: 10px;"
                                               onclick="$(this).siblings('.file_input').click()" href="javascript:void(0)">
                                                上&nbsp;传
                                            </a>
                                            <div style="clear: both;"></div>
                                            <label class="layui-form-label"> </label>
                                            <img id="tour_license_img" class="upload_img_show">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">法定代表人</label>
                                        <div class="layui-input-inline">
                                            <input type="text" autocomplete="off" id="tour_Legalperson"
                                                   class="layui-input upgrade_Legalperson">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">联系方式</label>
                                        <div class="layui-input-inline">
                                            <input type="tel"  id="tour_tel"
                                                   value="" maxlength="11" class="layui-input upgrade_tel">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">成立日期</label>
                                        <div class="layui-input-inline">
                                            <input class="layui-input" placeholder="成立日期" id="tour_start">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">商户类型</label>
                                        <div class="layui-input-inline">
                                            <input type="text" value="旅游景区"  data="2"  id="tour_Mertype_name"
                                                   readonly="readonly" autocomplete="off" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">景区类型</label>
                                        <div class="layui-input-inline">
                                            <select name="tour_Mertype" id="tour_Mertype">
                                                <!--<option value="游山">游山</option>-->
                                            </select>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">门票价格</label>
                                        <div class="layui-input-inline">
                                            <input type="text" autocomplete="off" id="tour_Ticket" class="layui-input">
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">开放时间</label>
                                            <div class="layui-input-inline">
                                                <input type="text" autocomplete="off" placeholder=" - "
                                                       class="layui-input" id="tour_kftime">
                                            </div>
                                        </div>

                                    </div>

                                    <div class="layui-form-item">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">适合人群</label>
                                            <div class="layui-input-block" id="tour_merch_type">
                                                <!--<input type="checkbox" name="tourType" lay-skin="primary" value="家庭游" title="家庭游">-->
                                            </div>
                                        </div>

                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">最佳季节</label>
                                        <div class="layui-input-inline">
                                            <select name="tour_season" id="tour_season">
                                                <option value="春季">春季</option>
                                                <option value="夏季">夏季</option>
                                                <option value="秋季">秋季</option>
                                                <option value="冬季">冬季</option>
                                            </select>
                                        </div>
                                        <div class="layui-form-mid layui-word-aux">季节最佳景点</div>
                                    </div>

                                    <div class="layui-row">
                                        <div class="layui-form layui-col-md12  layui-form-pane">
                                            <div class="layui-form-item city_name" id="tour_city_name">
                                                <label class="layui-form-label" style="border: 0px;">所属城市</label>
                                                <div class="layui-input-inline">
                                                    <select name="province" lay-filter="province" id="tour_province">
                                                        <option value="">请选择省</option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-inline">
                                                    <select name="city" lay-filter="city" id="tour_city">
                                                        <option value="">请选择市</option>
                                                    </select>
                                                </div>
                                                <div class="layui-input-inline">
                                                    <select name="area" lay-filter="area" id="tour_area">
                                                        <option value="">请选择县/区</option>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">住所</label>
                                        <div class="layui-input-inline">
                                            <input type="text"
                                                   id="tour_address" value=""
                                                   class="layui-input" style="width: 345px;">
                                        </div>
                                    </div>

                                    <div class="basic_infor basic_infor_mar">
                                        <p>
                                            <span class="sp1">完善认证条件</span>
                                            <span class="sp2">（此类信息为选填项，填写完整可让游客对您家的商铺更加了解，更加提高商铺的收益！）</span>
                                        </p>
                                    </div>

                                    <div class="layui-form-item">
                                        <label class="layui-form-label">景区等级</label>
                                        <div class="layui-input-inline">
                                            <select name="tour_grade" id="tour_grade">
                                                <option value="1">A</option>
                                                <option value="2">2A</option>
                                                <option value="3">3A</option>
                                                <option value="4">4A</option>
                                                <option value="5" selected="selected">5A</option>
                                            </select>
                                        </div>
                                    </div>

                                    <div class="layui-form-item basic_p5">
                                        <label class="layui-form-label">景区介绍</label>
                                        <div class="layui-input-inline">
                                            <textarea name="tour_introduce" id="tour_introduce"></textarea>
                                        </div>
                                    </div>

                                    <div class="layui-form-item basic_p5">
                                        <label class="layui-form-label">公交路线</label>
                                        <div class="layui-input-inline">
                                            <textarea name="txt_bus_line" id="tour_bus_line"></textarea>
                                        </div>
                                    </div>

                                    <div class="layui-form-item basic_p5">
                                        <label class="layui-form-label">自驾路线</label>
                                        <div class="layui-input-inline">
                                            <textarea name="txt_bus_line" id="tour_Self_driving_line"></textarea>
                                        </div>
                                    </div>

                                    <div class="layui-form-item basic_p5">
                                        <label class="layui-form-label">备注</label>
                                        <div class="layui-input-inline">
                                            <textarea id="tour_remarks" placeholder="商家信息注册,请核对商家信息"></textarea>
                                        </div>
                                    </div>

                                </div>

                            </div>

                        </div>

                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="linepopup_div"></div>
    <div class="d_btn">
        <div class="linepopup_button">
            <a class="Save_s" onclick="addMerchantSave()" href="javascript:void(0)">确定</a> <a
                href="javascript:mclose()" class="sure_btn1" style="margin-right: 15px;">取消</a>
        </div>
    </div>
</div>

<script type="text/javascript">
    $(function() {
        layui.use(['laydate', 'layer', 'layedit', 'element'], function() {
            $ = layui.jquery;
            var layedit = layui.layedit,
                laydate = layui.laydate,
                element = layui.element;

            //创建一个编辑器
            editIndex = layedit.build('L_content');

            //执行一个laydate实例
            laydate.render({
                elem: '#farm_start', //指定元素
                type: 'date'
                ,btns: ['confirm']
                ,max: time()//设置最大日期为当前日期时间
            });

            //执行一个laydate实例
            laydate.render({
                elem: '#tour_start', //指定元素
                type: 'date'
                ,btns: ['confirm']
                ,max: time()//设置最大日期为当前日期时间
            });

            //时间范围
            laydate.render({
                elem: '#tour_kftime',
                type: 'time',
                range: true
                ,btns: ['confirm']
            });
        })

    });
</script>
<script type="text/javascript">
    layui.use(['form', 'code'], function() {
        form = layui.form;

        layui.code();

        $('.city_name').xcity('重庆', '市', '永川市');

    });
</script>


</html>

